package fy.oatodo;

import com.seeyon.ctp.common.authenticate.sso.SSOTicketManager.TicketInfo;
import com.seeyon.ctp.common.constants.LoginResult;
import com.seeyon.ctp.login.LoginAuthenticationException;
import com.seeyon.ctp.portal.sso.SSOLoginContext;
import com.seeyon.ctp.portal.sso.SSOLoginHandshakeInterface;
import com.seeyon.ctp.portal.sso.SSOTicketBean;
import javax.servlet.http.HttpServletRequest;

public class MySSOLoginHandshake
  implements SSOLoginHandshakeInterface
{
  public String handshake(String ticket)
  { 
    try
    {
//      SSOTicketManager.TicketInfo ticketInfo = SSOTicketBean.getTicketInfo(ticket);

      if ((ticket != null) && (!"".equals(ticket)))
      {
        String username;
        return username = ticket;
      }
    }
    catch (Exception e) {
      e.printStackTrace();
    }
    return null;
  }

  public void logoutNotify(String s)
  {
  }

  public LoginResult dogCheck(String arg0, String arg1, HttpServletRequest arg2)
    throws LoginAuthenticationException
  {
    return null;
  }

@Override
public String getToUrl(HttpServletRequest arg0, SSOLoginContext arg1, String arg2) {
	// TODO Auto-generated method stub
	return null;
}
}